const { defineConfig } = require('@vue/cli-service'); //h264视频流播放依赖

module.exports = {
    devServer: {
        port: 8888,
        host: 'localhost',
        https: false,
        open: true,
        proxy: {
            '/k_olap_web': {
                target: 'http://172.21.205.165:8080',
                changeOrigin: true,
                pathRewrite: {
                    '^/':''
                }
            }
        }
    },
    configureWebpack: { //h264视频流播放依赖
        resolve: {
        fallback: {
            "stream": require.resolve("stream-browserify"),
            "buffer": require.resolve("buffer/"),
            "crypto": false  // 如果需要也可以添加其他polyfill
        }
        }
    },
}